package fun.symtable.system.log;

import fun.parser.EvaluationException;
import fun.symtable.SymbolTable;
import fun.symtable.system.BinaryFunction;

public class log extends BinaryFunction {
	public log() {
		super("log");
	}

	public double getValue(SymbolTable symtable) throws EvaluationException {
		return Math.log(this.getFirstArgumentValue(symtable)) / Math.log(this.getSecondArgumentValue(symtable));
	}
}
